﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AuthorizationManager.cs" company="Anton Frattaroli">
//   Copyright (c) Anton Frattaroli. All rights reserved.
// </copyright>
// <summary>
//   Defines the AuthorizationManager class.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Lidocaine.BusinessLogic
{
    using Lidocaine.BusinessObjects;
    using Lidocaine.Data;

    /// <summary>
    /// The AuthorizationManager class.
    /// </summary>
    public static class AuthorizationManager
    {
        public static void AddPermission(Source itemType, int itemID, PermissionAllowType allowType, int allowID)
        {
            Data.Authorization.Insert(itemType, itemID, allowType, allowID);
        }

        public static void RemovePermission(int permissionId)
        {
            Data.Authorization.Delete(permissionId);
        }
    }
}